package com.itcam.phaseiii.iostream_;

import java.io.PrintStream;

/**
 * Author:Cammy.Wu
 * Date:2024-05-13
 * Description:标准输出流stdout
 */

public class StdStreamDemo02 {
    public static void main(String[] args) {
        // 写到控制台
        PrintStream out = System.out;
        // 调用方法
        // 直接写到控制台不换行
        out.print("Ha");
        out.print("Ha");
        out.print("Ha");
        out.print("Ha");
        out.print("Ha");

        System.out.println();

        // 直接写到控制台但换行
        out.println("Hello World~");
        out.println("Hello World~");
        out.println("Hello World~");
        out.println("Hello World~");
        out.println("Hello World~");


    }
}
